home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / CC-HEAD.MAK < prev    next >
Makefile  |  1992-03-25  |  4KB  |  126 lines

  1. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/cc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Define the name of the Ghostscript initialization file.
  35. # (There is no reason to change this.)
  36.  
  37. GS_INIT=gs_init.ps
  38.  
  39. # Choose generic configuration options.
  40.  
  41. # -DDEBUG
  42. #    includes debugging features (-Z switch) in the code.
  43. #      Code runs substantially slower even if no debugging switches
  44. #      are set.
  45. # -DNOPRIVATE
  46. #    makes private (static) procedures and variables public,
  47. #      so they are visible to the debugger and profiler.
  48. #      No execution time or space penalty.
  49.  
  50. GENOPT=
  51.  
  52. # ------ Platform-specific options ------ #
  53.  
  54. # Define the other compilation flags.
  55. # Add -DBSD4_2 for 4.2bsd systems.
  56. # Add -DSYSV for System V.
  57. # Add -DSYSV -D__SVR3 for ISC Unix 2.2.
  58. # Add -DSVR4 (not -DSYSV) for System V release 4.
  59. # XCFLAGS can be set from the command line.
  60.  
  61. CFLAGS=-O $(XCFLAGS)
  62.  
  63. # Define platform flags for ld.
  64. # SunOS and some others want -X; Ultrix wants -x.
  65. # SunOS 4.n may need -Bstatic.
  66. # XLDFLAGS can be set from the command line.
  67.  
  68. LDFLAGS=$(XLDFLAGS)
  69.  
  70. # Define any extra libraries to link into the executable.
  71. # ISC Unix 2.2 wants -linet.
  72. # (Libraries required by individual drivers are handled automatically.)
  73.  
  74. EXTRALIBS=
  75.  
  76. # Define the include switch(es) for the X11 header files.
  77. # This can be null if handled in some other way (e.g., the files are
  78. # in /usr/include, or the directory is supplied by an environment variable).
  79.  
  80. XINCLUDE=-I/usr/local/X/include
  81.  
  82. # Define the directory/ies for the X11 library files.
  83. # This can be null if these files are in the default linker search path.
  84.  
  85. XLIBDIRS=-L/usr/local/X/lib
  86.  
  87. # Define the installation commands and target directories for
  88. # executables and files.  Only relevant to `make install'.
  89.  
  90. INSTALL = install -c
  91. INSTALL_PROGRAM = $(INSTALL) -m 775
  92. INSTALL_DATA = $(INSTALL) -m 664
  93.  
  94. prefix = /usr/local
  95. bindir = $(prefix)/bin
  96. libdir = $(prefix)/lib/ghostscript
  97.  
  98. # ------ Devices and features ------ #
  99.  
  100. # Choose the language feature(s) to include.  See gs.mak for details.
  101.  
  102. FEATURE_DEVS=filter.dev dps.dev level2.dev
  103.  
  104. # Choose the device(s) to include.  See devs.mak for details.
  105.  
  106. DEVICE_DEVS=x11.dev
  107.  
  108. # ---------------------------- End of options --------------------------- #
  109.  
  110. # Define the name of the makefile -- used in dependencies.
  111.  
  112. MAKEFILE=unix-cc.mak
  113.  
  114. # Define the ANSI-to-K&R dependency.
  115.  
  116. AK=ansi2knr$(XE)
  117.  
  118. # Define the compilation rules and flags.
  119.  
  120. CCC=./ccgs "$(CC) $(CCFLAGS)" _temp_.c
  121.  
  122. # --------------------------- Generic makefile ---------------------------- #
  123.  
  124. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  125. # is generic.  tar_cat concatenates all these together.
  126.